﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Multiprocessing.Algorithms.Matrices;
using Multiprocessing.Analyse;
using Multiprocessing.Core.Algorithm;
using Multiprocessing.Core.Mathematics.Matrices;
using Multiprocessing.Core.Units;

namespace Client.Console
{
    class Program
    {
        static void Main(string[] args)
        {
            IAlgorithm alg = new MultiplyMatricesAlgorithm("ajsldjfald");
            IAnalyseUnit acceleration = new Acceleration(alg);
            int size = 200;
            Matrix first = Matrix.Factory.CreateIdentity<Matrix>(size),
                      second = Matrix.Factory.CreateRandom<Matrix>(size, size);
            for (int unitsCount = 2; unitsCount < 21; unitsCount++)
            {
                System.Console.WriteLine("Unit count: {0}", unitsCount);
                double accValue = acceleration.Calculate(unitsCount, first, second);
                System.Console.WriteLine("Acceleration: {0}; Efficiency: {1}\n", accValue, accValue/unitsCount);
            }
            
            
        }
    }
}
